/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package boogie.assetgenerator.data;


/**
 *
 * @author boogie
 */
public class Asset {

    private final String name;
    private final String path;

    public Asset(String name, String path) {

        this.name = isNumber(name)||(name.charAt(0)>='0'&& name.charAt(0)<='9') ?("_"+name):name;
        this.path = path;
    }

    private boolean isNumber(String s){
        try{
            Integer.parseInt(s);
            return true;
        }catch(Exception e){
            
        }
        return false;
    }
    public String getName() {
        return name;
    }

    public String getPath() {
        return path;
    }

    @Override
    public String toString() {
        return "public static final String " + name + "=\"" + path + "\";";
    }
}
